package com.boarsoft.boar.batch.demo.split;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.boarsoft.flow.core.SimpleFlowEngine;

public class TableSplitDemo {
	private static ClassPathXmlApplicationContext ctx;

	public static void main(String[] args) throws Throwable {
		ctx = new ClassPathXmlApplicationContext("classpath:conf/context.xml");
		System.out.println("Startup ".concat(ctx.isRunning() ? "successfully." : "failed."));
		
		SimpleFlowEngine engine = ctx.getBean(SimpleFlowEngine.class);
		engine.start("tblSplitFlow1", args);
	}
}
